package com.example.crmweb.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author -CRM-
 * @since 2022-03-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
public class StaffBranch implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 员工部门的关联表编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 关联员工表
     */
    private Integer staffId;

    /**
     * 关联部门表
     */
    private Integer branchId;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

}
